package org.phantom.securityframework.web;

import org.apache.shiro.config.Ini;
import org.apache.shiro.mgt.SecurityManager;
import org.apache.shiro.web.config.WebIniSecurityManagerFactory;

import org.phantom.securityframework.web.mgt.WebSecurityManager;
/**
 * Shiro Factory。创建自定义SecurityManager
 * @see org.phantom.securityframework.web.mgt.WebSecurityManager
 * @author david
 *
 */
public class WebSecurityManagerFactory extends WebIniSecurityManagerFactory {

	public WebSecurityManagerFactory() {
	}
	
	public WebSecurityManagerFactory(Ini ini){
		super(ini);
	}
	@Override
	protected SecurityManager createDefaultInstance() {
		return new WebSecurityManager();
	}
}
